package com.jm.common.tool;

import lombok.extern.slf4j.Slf4j;

/**
 * @author kong
 */
@Slf4j
public class LogTool {

    public static Void err(Throwable e) {
        if (e != null) {
            log.error("err:", e);
        }
        return null;
    }

    public static Void err(Throwable e, String message) {
        if (e != null) {
            log.error("err:{}", message, e);
        }
        return null;
    }
}
